package leetcode.D700.T637;

import util.TreeNode;
import util.TreeUtil;

public class E637 {
    public static void main(String[] args) {
        String data = "[3,9,20,null,null,15,7]";
        TreeNode root = TreeUtil.deserialize(data);
        TreeUtil.printPreorder(root);
        TreeUtil.printLevel(root);
        Solution solution = new Solution();
        System.out.println(solution.averageOfLevels(root));
    }
}
